import request from '../utils/request'


// 搜索api
export function searchApi() {
    return request.get('fiction/search/title/全职高手/1/10')
}
// http://api.pingcc.cn/fiction/search/title/玄幻/1/10

// 我的书架
export function mineBookStore() {
    return request.get('fiction/search/title/玄幻/1/10')
}
// 首页书库
export function mineBookStore_index(params) {
    return request.get(`fiction/search/title/${params}/1/8`)
}



// 书籍目录
export function bookdirectory(fictionId) { 
    return request.get(`fictionChapter/search/${fictionId}`)
}
// 书籍内容
export async function bookcontent(chapterId) { 

    // let returnapi = setTimeout(() => {
    //     request.get(`fictionContent/search/${chapterId}`)
    // },300)
    // return returnapi
     return await request.get(`fictionContent/search/${chapterId}`)
}